<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>scanf_conversion</title>
  </head>
  <body bgcolor="#FFFFFF">
    <center>Scilab Function</center>
    <div align="right">Last update : May 1994</div>
    <p>
      <b>scanf_conversion</b> -  scanf, sscanf, fscanf conversion specifications</p>
    <h3>
      <font color="blue">Description</font>
    </h3>
    <p>
    Each conversion specification in the format parameter
    contains the following elements:
  </p>
    <dl>
      <dd>
        <b>+</b>The character % (percent sign)</dd>
      <dd>
        <b>+</b>The optional assignment suppression character *</dd>
      <dd>
        <b>+</b>An optional numeric maximum field width</dd>
      <dd>
        <b>+</b>A conversion code</dd>
    </dl>
    <p>
    The conversion specification has the following syntax:
  </p>
    <p>
      <tt>
        <b>[*][width][size]convcode</b>
      </tt>.
  </p>
    <p>
    The results from the conversion are placed in v_i arguments
    unless you specify assignment suppression with * (asterisk). Assignment
    suppression provides a way to describe an input field that is to be
    skipped. The input field is a string of nonwhite-space characters.
    It extends to the next inappropriate character or until the field
    width, if specified, is exhausted.
  </p>
    <p>
    The conversion code indicates how to interpret the input field.
     You should not specify the v_i parameter for a
    suppressed field. You can use the following conversion codes:
  </p>
    <dl>
      <dd>
        <b>%</b>:Accepts a single % (percent sign) input at this point; no assignment is done.</dd>
      <dd>
        <b>d, i</b>:Accepts a decimal integer;</dd>
      <dd>
        <b>u</b>:Accepts an unsigned decimal integer;</dd>
      <dd>
        <b>o</b>:Accepts an octal integer;</dd>
      <dd>
        <b>x</b>:Accepts a hexadecimal integer;</dd>
      <dd>
        <b>e,f,g</b>:Accepts a floating-point number. The next field is converted accordingly and stored through the corresponding parameter, which should be a pointer to a float. The input format for floating-point numbers is a string of digits, with the following optional characteristics:</dd>
      <dd>
        <b>+</b>It can be a signed value.</dd>
      <dd>
        <b>+</b>It can be an exponential value, containing a decimal point followed by an exponent field, which consists of an E or an e followed by an (optionally signed) integer.</dd>
      <dd>
        <b>+</b>It can be one of the special values INF, NaN,</dd>
      <dd>
        <b>s</b>:Accepts a string of characters.</dd>
      <dd>
        <b>c</b>:character value is expected. The normal skip over white space is suppressed.</dd>
    </dl>
    <h3>
      <font color="blue">See Also</font>
    </h3>
    <p>
      <a href="scanf.htm">
        <tt>
          <b>scanf</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="scanf.htm">
        <tt>
          <b>scanf</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="fscanf.htm">
        <tt>
          <b>fscanf</b>
        </tt>
      </a>,&nbsp;&nbsp;</p>
  </body>
</html>
